package com.dhl.stategy.improve;

/**
 * @title: Client
 * @Author danghailiang
 * @Date: 2022/8/24 1:22
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        Duck duck = new ToDuck();
        duck.display();
        // 不会叫
        duck.quackBehavior();
        duck.flyBehavior();
        duck.swim();

        BJDuck bjDuck = new BJDuck();

        bjDuck.display();
        // 不会叫
        bjDuck.quackBehavior();
        bjDuck.flyBehavior();
        bjDuck.swim();
    }
}
